<!-- Designed and Developed by VSE Group -->
<!-- For any concerns :  gaurav.pruthi@tcs.com -->

<?php
require_once('KLogger.php');
$log = new KLogger ( "log.txt" , KLogger::DEBUG ); 
?>	


<?php include('./classes/mailer.php'); ?>
<?php include('./classes/employee.php'); ?>

<?php

$m = new mailer();

$to = $_REQUEST['to'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];

$m->set_to($to);

//Setting message and body..
$m->set_headers('From: "WebChecklist Notification" <WebChecklist_Message_Broker@tcs.com>'."\r\n");

//"CC : ".$cc[0]." , ".$cc[1]." , ".$cc[2]." , ".$cc[3]." , ".$cc[4]);


$m->set_subject($subject);
$m->set_body("Hi , "."\n\n".$message."\n\n\n"."Regards ,"."\n"."iVSE - WebChecklist Messenger"
."\n\n"."In case of concerns :"."\n"."mailto:gaurav.pruthi@tcs.com"."\n"."ESN : 3048");


//Sending mail...
$m->sendmail();	
echo '<script type="text/javascript">','alert("Redirecting !!!");',
'window.location = "http://172.26.195.159/checklist/php/welcome.php";' ,'</script>';
?>